var AppIcon = GObject.registerClass({
GTypeName: 'AppDisplay_AppIcon',
- Implements: [Search.SearchResultInterface],
Signals: {
'menu-state-changed': { param_types: [GObject.TYPE_BOOLEAN] },
'sync-tooltip': {},
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
-/* exported SearchResultsView, SearchResultInterface */
+/* exported SearchResultsView */
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
}
});
-var SearchResultInterface = GObject.registerClass({
- Requires: [Clutter.Actor],
-}, class SearchResultInterface extends GObject.Interface {
- activate() {
- throw new GObject.NotImplementedError('activate in %s'.format(this.constructor.name));
- }
-});
-
-var SearchResult = GObject.registerClass({
- Implements: [SearchResultInterface]
-}, class SearchResult extends St.Button {
+var SearchResult = GObject.registerClass(
+class SearchResult extends St.Button {
_init(provider, metaInfo, resultsView) {
this.provider = provider;
this.metaInfo = metaInfo;
metasNeeded.forEach((resultId, i) => {
let meta = metas[i];
let display = this._createResultDisplay(meta);
- if (!(display instanceof SearchResultInterface))
- throw new Error(`${display} is not a valid search result`);
display.connect('key-focus-in', this._keyFocusIn.bind(this));
this._resultDisplays[resultId] = display;
});